package com.loser.module.car;

import com.loser.module.car.entity.Car;
import io.github.loserya.core.sdk.impl.BaseMogoService;
import io.github.loserya.module.datasource.MongoDs;
import io.github.loserya.module.logic.IgnoreLogic;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 测试数据 实现类
 *
 * @author loser
 * @date 2023-02-05  13:58
 */
@Service
@Transactional
@MongoDs("slave_1")
@IgnoreLogic
public class CarServiceImpl extends BaseMogoService<Car, String> {

    public CarServiceImpl() {
        System.out.println(1111);
    }

    @Override
    @MongoDs("slave_2")
    @IgnoreLogic
    public Car getById(String id) {
        return super.getById(id);
    }

}
